package com.dks.repository;

import com.dks.dto.DoctorWebDto;
import com.dks.exception.BaseException;
import com.dks.models.TalksRecord;
import com.dks.result.ResultModel;
import com.dks.util.PageInfo;

import java.time.LocalDateTime;


public interface ITalksRecordRepository {

    ResultModel<Boolean> insert(TalksRecord talksRecord);

    ResultModel<Boolean> update(TalksRecord talksRecord);

    ResultModel selectById(Integer id);

    ResultModel<PageInfo<TalksRecord>> selectList(Integer pageNum, Integer pageSize,String beginTime,Integer departmentId);

    ResultModel<Boolean> delete(TalksRecord talksRecord);

    ResultModel<Boolean> begin(TalksRecord talksRecord);

    ResultModel<Boolean> endRecord(TalksRecord talksRecord);

    ResultModel<Boolean> doctorEndRecord(TalksRecord talksRecord);

    ResultModel<Boolean> beginWaitRecord(TalksRecord talksRecord);

    ResultModel<Boolean> cancelWaitRecord(TalksRecord talksRecord);

    ResultModel<PageInfo<TalksRecord>> selectDoctorList(DoctorWebDto doctorWebDto);

    ResultModel<Boolean> getWXOpenid(String jsCode);
}
